package Controllers;

import Models.MainModel;
import Views.MasterView;

public class MainController {
	
	public MasterView Test1View = null;
	private MainModel model = null;
	
	public MainController(MainModel model){
		this.model = model;
		//Test1View = new Test1View(this, model.getsomething());
		Test1View = new Views.Test1View(this);
	} //end constructor
	
	public void startDisplay(){
		Test1View.display();
	} //end startDisplay Method
	
	public void makeGraph(){
		//here you handle the XML to MainModel that have instance of XML parser
		//You get the return 
		//You Launch the graph generation (execute a Method in MainModel)
		//You get the result
		//lets say 
		this.model.createIntersectionsList();
	}
	
	public void ChangeIntersectionState(String Intersection, int state){
		//just printing now
		//TODO implement it once we figure out where to parse XML and what is the DataStructure
	}
	
	public void TestAction2(){
		this.model.printIntersectionsList();
	}
	
	// in this test this Action is Performed from Model [it will be Model > Controller > view ]
	public void TestAction(){
		Test1View.showUndoRedo();
	}
	
	

} //end class MainController
